package com.zr.service.impl;


import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zr.dao.FunctionDao;
import com.zr.dao.RoleDao;
import com.zr.service.FunctionService;

import net.sf.json.JSONArray;

@Service("functionservice")
public class FunctionServiceImpl implements FunctionService{
	@Resource
	private RoleDao roleDao;
	
	@Resource
	private FunctionDao functionDao;
	@Override
	public JSONArray findUserFunctionByRole(int rid) {
		// TODO Auto-generated method stub
		return functionDao.findUserAllFunctionByRole(roleDao.findUserRole(rid).getFunc(), -1);
	}

}
